home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power Programmierung
/
Power-Programmierung (Tewi)(1994).iso
/
magazine
/
pctchnqs
/
1991
/
number6
/
scancode.asm
< prev
next >
Wrap
Assembly Source File
|
1991-11-14
|
389b
|
17 lines
; Listing 1 -- Using EQU to define text macros
;
; Return registers for INT 16h, Function 0
;
ScanCode equ <ah>
AsciiValue equ <al>
WaitForESC:
mov ah,0
int 16h
cmp ScanCode,1 ;expands to "cmp ah,1"
jne WaitForESC
cmp AsciiValue,27 ;expands to "cmp al,27"
jne WaitForESC
; ESC key has been pressed, continue processing